<%@ page import="com.portico.dept.solarch.ProjectTeamMember" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="thin"/>
  <g:set var="entityName" value="${message(code: 'projectTeamMember.label', default: 'ProjectTeamMember')}"/>
  <title><g:message code="default.show.label" args="[entityName]"/></title>
</head>
<body>
%{--<div class="nav">--}%
%{--<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>--}%
%{--<span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>--}%
%{--<span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>--}%
%{--</div>--}%

  <div class="body">
    <h1><g:message code="default.show.label" args="[entityName]"/></h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>


    <div class="dialog">
      <table>
        <tbody>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.id.label" default="Id"/></td>

          <td valign="top" class="value">${fieldValue(bean: projectTeamMemberInstance, field: "id")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.projectRole.label" default="Project Role"/></td>

          <td valign="top" class="value">${fieldValue(bean: projectTeamMemberInstance, field: "projectRole")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.department.label" default="Department"/></td>

          <td valign="top" class="value">${fieldValue(bean: projectTeamMemberInstance, field: "department")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.startDate.label" default="Start Date"/></td>

          <td valign="top" class="value"><g:formatDate date="${projectTeamMemberInstance?.startDate}"/></td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.endDate.label" default="End Date"/></td>

          <td valign="top" class="value"><g:formatDate date="${projectTeamMemberInstance?.endDate}"/></td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.note.label" default="Note"/></td>

          <td valign="top" class="value">${fieldValue(bean: projectTeamMemberInstance, field: "note")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.active.label" default="Active"/></td>

          <td valign="top" class="value"><g:formatBoolean boolean="${projectTeamMemberInstance?.active}"/></td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.project.label" default="Project"/></td>

          <td valign="top" class="value"><g:link controller="project" action="show" id="${projectTeamMemberInstance?.project?.id}">${projectTeamMemberInstance?.project?.encodeAsHTML()}</g:link></td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="projectTeamMember.user.label" default="User"/></td>

          <td valign="top" class="value"><g:link controller="person" action="show" id="${projectTeamMemberInstance?.user?.id}">${projectTeamMemberInstance?.user?.encodeAsHTML()}</g:link></td>

        </tr>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <g:form>
        <g:hiddenField name="id" value="${projectTeamMemberInstance?.id}"/>
        <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}"/></span>
        <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/></span>
      </g:form>
    </div>
  </div>

</body>
</html>
